<%@ page import="java.sql.DriverManager" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.Statement" %>
<%@ page import="java.sql.ResultSet" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Objects" %><%--
  Created by IntelliJ IDEA.
  User: 32104
  Date: 2024/6/6
  Time: 上午10:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>

<%--将数据给index1处理--%>

<head>
    <title>数据库管理</title>
    <link href="CSS/First.css" type="text/css" rel="stylesheet">
    <link rel="icon" href="./img/picture01.png" type="text/html">
</head>
<body>
<%--第一部分--%>
<%--登陆界面--%>
<div class="All">
    <form method="post" action="jsp/Subject/index1.jsp" name="form">
        <p><b>用户登录系统</b></p>
        <table id="table_01">
            <tr>
                <td>
                    <b>用户名:</b>
                </td>
                <td>
                    <input type="text" name="name" placeholder="请输入用户名" maxlength="12" class="Input1"/>
                </td>
            </tr>
            <tr>
                <td>
                    <b>密&nbsp;&nbsp;&nbsp;码:</b>
                </td>
                <td>
                    <input type="password" name="password" placeholder="请输入密码" maxlength="12" class="Input1"/>
                </td>
            </tr>
            <tr>
                <td style="text-align: right">
                    <input type="submit" value="登录" id="b1"/>
                </td>
                <td style="text-align: left">
                    <input type="reset" value="重置" id="b2"/>
                </td>
            </tr>
        </table>
    </form>
</div>
<%
    String name = request.getParameter("name");
    String password = request.getParameter("password");
    HttpSession session1 = request.getSession();
    session1.setAttribute("userName", name);
%>
</body>
</html>
